package com.itheima.utils;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 封装属性键值对值
 */
@Data
@Component
@ConfigurationProperties(prefix = "aliyun.oss")
public class AliOssProperties {

    private String endpoint;    //aliyun.oss.endpoint
    private String accessKeyId;  //aliyun.oss.access-key-id
    private String accessKeySecret;
    private String bucketName;

}
